
cd "/media/Environ/Compile/rocksndiamonds-4.1.4.1" && /usr/bin/gdb -- "/media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds"
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds...done.
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3981700 (LWP 9363)]
[New Thread 0x7fffe3940700 (LWP 9364)]
[New Thread 0x7fffe1a99700 (LWP 9365)]
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 20 ms (max. 50 fps / 100 %)
rocksndiamonds: frame delay == 1 ms (max. 1000 fps / 2000 %)
malloc(): smallbin double linked list corrupted

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a1535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f8508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0328d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78fec1a in malloc_printerr (str=str@entry=0x7ffff7a053a8 "malloc(): smallbin double linked list corrupted") at malloc.c:5341
#4  0x00007ffff7901fa4 in _int_malloc (av=av@entry=0x7ffff7a3ac40 <main_arena>, bytes=bytes@entry=24) at malloc.c:3640
#5  0x00007ffff79041a2 in __libc_calloc (n=<optimized out>, elem_size=<optimized out>) at malloc.c:3428
#6  0x0000555555713a90 in checked_calloc (size=24) at misc.c:1254
#7  0x00005555557150fd in openFile (filename=0x55555b652840 "/home/bryan/.rocksndiamonds/editorsetup.conf", mode=0x5555557d234c "rb") at misc.c:2145
#8  0x000055555570b55d in loadSetupFileData (setup_file_data=0x55555b123aa0, filename=0x55555b652840 "/home/bryan/.rocksndiamonds/editorsetup.conf", top_recursion_level=1, is_hash=0) at setup.c:2086
#9  0x000055555570ba95 in loadSetupFileList (filename=0x55555b652840 "/home/bryan/.rocksndiamonds/editorsetup.conf") at setup.c:2257
#10 0x00005555556e9c64 in LoadUserDefinedEditorElementList (elements=0x555555ad36e0 <editor_el_user_defined_ptr>, num_elements=0x555555ad36e8 <num_editor_el_user_defined>) at files.c:11243
#11 0x00005555556b59ad in ReinitializeElementList () at editor.c:5723
#12 0x00005555556bd551 in CreateLevelEditorGadgets () at editor.c:7159
#13 0x000055555563a4d9 in InitGadgets () at init.c:169
#14 0x000055555565f55d in ChangeViewportPropertiesIfNeeded () at tools.c:9723
#15 0x0000555555662905 in DrawMainMenu () at screens.c:1616
#16 0x00005555556b31ab in RequestQuitGameExt (skip_request=1, quick_quit=1, message=0x5555557c9d60 "Do you really want to quit the game?") at game.c:15028
#17 0x00005555556b3252 in RequestQuitGame (ask_if_really_quit=0) at game.c:15048
#18 0x000055555564ab24 in HandleKey (key=27, key_status=1) at events.c:2376
#19 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd9f0) at events.c:1462
#20 0x0000555555646b84 in HandleEvents () at events.c:249
#21 0x0000555555646d67 in EventLoop () at events.c:348
#22 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb48) at main.c:7762
(gdb) # had just hit keyboard button to load tape
(gdb) q
A debugging session is active.

	Inferior 1 [process 9356] will be killed.

Quit anyway? (y or n) y
 2020-05-12T14:27:58.090551549-04:00
 -----------------------------------

/media/Environ/Compile/rocksndiamonds-4.1.4.1
cd "/media/Environ/Compile/rocksndiamonds-4.1.4.1" && /usr/bin/gdb -- "/media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds"
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds...done.
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3981700 (LWP 10358)]
[New Thread 0x7fffe3940700 (LWP 10359)]
[New Thread 0x7fffe1a9a700 (LWP 10361)]
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
corrupted double-linked list

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a1535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f8508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0328d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78fec1a in malloc_printerr (str=str@entry=0x7ffff7a01393 "corrupted double-linked list") at malloc.c:5341
#4  0x00007ffff78fee64 in malloc_consolidate (av=av@entry=0x7ffff7a3ac40 <main_arena>) at malloc.c:4488
#5  0x00007ffff7901a58 in _int_malloc (av=av@entry=0x7ffff7a3ac40 <main_arena>, bytes=bytes@entry=4096) at malloc.c:3695
#6  0x00007ffff790356a in __GI___libc_malloc (bytes=4096) at malloc.c:3057
#7  0x00007ffff78ee71c in __GI__IO_file_doallocate (fp=0x555558c1bb30) at filedoalloc.c:101
#8  0x00007ffff78fc700 in __GI__IO_doallocbuf (fp=fp@entry=0x555558c1bb30) at libioP.h:839
#9  0x00007ffff78fb744 in _IO_new_file_underflow (fp=0x555558c1bb30) at fileops.c:493
#10 0x00007ffff78fc7b2 in __GI__IO_default_uflow (fp=0x555558c1bb30) at libioP.h:839
#11 0x00007ffff78eff4a in __GI__IO_getline_info (fp=fp@entry=0x555558c1bb30, buf=buf@entry=0x7fffffffd350 "tape.label.single_step.y", n=1023, delim=delim@entry=10, 
    extract_delim=extract_delim@entry=1, eof=eof@entry=0x0) at iogetline.c:60
#12 0x00007ffff78f0038 in __GI__IO_getline (fp=fp@entry=0x555558c1bb30, buf=buf@entry=0x7fffffffd350 "tape.label.single_step.y", n=<optimized out>, delim=delim@entry=10, 
    extract_delim=extract_delim@entry=1) at iogetline.c:34
#13 0x00007ffff78eefeb in _IO_fgets (buf=0x7fffffffd350 "tape.label.single_step.y", n=<optimized out>, fp=0x555558c1bb30) at iofgets.c:53
#14 0x00005555557152bf in getStringFromFile (file=0x55555b873c80, line=0x7fffffffd350 "tape.label.single_step.y", size=1024) at misc.c:2296
#15 0x000055555570b5e6 in loadSetupFileData (setup_file_data=0x55555b7ca0b0, filename=0x555559a3a3c0 "/media/Environ/Compile/rocksndiamonds-4.1.4.1/sounds/snd_classic/soundsinfo.conf", 
    top_recursion_level=1, is_hash=1) at setup.c:2109
#16 0x000055555570bb05 in loadSetupFileHash (filename=0x555559a3a3c0 "/media/Environ/Compile/rocksndiamonds-4.1.4.1/sounds/snd_classic/soundsinfo.conf") at setup.c:2277
#17 0x00005555556458a4 in CheckArtworkConfigForCustomElements (filename=0x555559a3a3c0 "/media/Environ/Compile/rocksndiamonds-4.1.4.1/sounds/snd_classic/soundsinfo.conf") at init.c:5732
#18 0x00005555556459d7 in CheckArtworkTypeForRedefinedCustomElements (type=1) at init.c:5789
#19 0x0000555555645a44 in InitOverrideArtwork () at init.c:5813
#20 0x0000555555645d9e in ReloadCustomArtwork (force_reload=0) at init.c:5925
#21 0x00005555556628b0 in DrawMainMenu () at screens.c:1596
#22 0x000055555566f835 in HandleHallOfFame (mx=0, my=0, dx=0, dy=0, button=0) at screens.c:4747
#23 0x000055555564a794 in HandleKey (key=13, key_status=1) at events.c:2314
#24 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd9c0) at events.c:1462
#25 0x0000555555646b84 in HandleEvents () at events.c:249
#26 0x0000555555646d67 in EventLoop () at events.c:348
#27 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb18) at main.c:7762
(gdb) # Just finished a level and it showed the high score for the level
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3981700 (LWP 11394)]
[New Thread 0x7fffe3940700 (LWP 11395)]
[New Thread 0x7fffe1a99700 (LWP 11397)]
[Thread 0x7fffe3940700 (LWP 11395) exited]
[Thread 0x7fffe3981700 (LWP 11394) exited]
[Thread 0x7fffe1a99700 (LWP 11397) exited]
[Inferior 1 (process 11393) exited normally]
(gdb) # It saved the high score, changed the completion status to completed, didn't advance selection to next level
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3981700 (LWP 13846)]
[New Thread 0x7fffe3940700 (LWP 13847)]
[New Thread 0x7fffe1a9a700 (LWP 13848)]
rocksndiamonds: frame delay == 1 ms (max. 1000 fps / 2000 %)
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 20 ms (max. 50 fps / 100 %)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 29 ms (max. 34 fps / 68 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 29 ms (max. 34 fps / 68 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
rocksndiamonds: frame delay == 20 ms (max. 50 fps / 100 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
free(): double free detected in tcache 2

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a1535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f8508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0328d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78fec1a in malloc_printerr (str=str@entry=0x7ffff7a04f58 "free(): double free detected in tcache 2") at malloc.c:5341
#4  0x00007ffff79006fd in _int_free (av=0x7ffff7a3ac40 <main_arena>, p=0x55555c14a450, have_lock=<optimized out>) at malloc.c:4193
#5  0x0000555555713b28 in checked_free (ptr=0x55555c14a460) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c783690 "rnd_jerome_kunegis") at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x00005555556ecbff in TapeStartRecording (random_seed=1591229770) at tape.c:584
#9  0x00005555556a7c7b in StartGameActions (init_network_game=0, record_tape=1, random_seed=0) at game.c:11322
#10 0x00005555556648c0 in HandleMainMenu (mx=0, my=0, dx=0, dy=0, button=0) at screens.c:2134
#11 0x000055555564a6a5 in HandleKey (key=13, key_status=1) at events.c:2304
#12 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd9c0) at events.c:1462
#13 0x0000555555646b84 in HandleEvents () at events.c:249
#14 0x0000555555646d67 in EventLoop () at events.c:348
#15 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb18) at main.c:7762
(gdb) # had just exited to menu
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3981700 (LWP 17830)]
[New Thread 0x7fffe3940700 (LWP 17831)]
[New Thread 0x7fffe1a99700 (LWP 17832)]
double free or corruption (out)

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a1535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f8508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0328d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78fec1a in malloc_printerr (str=str@entry=0x7ffff7a04ff8 "double free or corruption (out)") at malloc.c:5341
#4  0x00007ffff7900730 in _int_free (av=0x7ffff7a3ac40 <main_arena>, p=0x55555fd16a30, have_lock=<optimized out>) at malloc.c:4306
#5  0x0000555555713b28 in checked_free (ptr=0x55555fd16a40) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c784370 "rnd_jerome_kunegis") at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x00005555556ecbff in TapeStartRecording (random_seed=1591625523) at tape.c:584
#9  0x00005555556a7c7b in StartGameActions (init_network_game=0, record_tape=1, random_seed=0) at game.c:11322
#10 0x00005555556648c0 in HandleMainMenu (mx=0, my=0, dx=0, dy=0, button=0) at screens.c:2134
#11 0x000055555564a6a5 in HandleKey (key=13, key_status=1) at events.c:2304
#12 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd9c0) at events.c:1462
#13 0x0000555555646b84 in HandleEvents () at events.c:249
#14 0x0000555555646d67 in EventLoop () at events.c:348
#15 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb18) at main.c:7762
(gdb) # had just pressed esc to go to main menu
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe3981700 (LWP 20557)]
[New Thread 0x7fffe3940700 (LWP 20558)]
[New Thread 0x7fffe1a99700 (LWP 20559)]
rocksndiamonds: warning: getKeyFromKeyName(): not completely implemented
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 30 ms (max. 33 fps / 66 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 20 ms (max. 50 fps / 100 %)
rocksndiamonds: frame delay == 20 ms (max. 50 fps / 100 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 20 ms (max. 50 fps / 100 %)
[Thread 0x7fffe3940700 (LWP 20558) exited]
[Thread 0x7fffe3981700 (LWP 20557) exited]
[Thread 0x7fffe1a99700 (LWP 20559) exited]
[Inferior 1 (process 20554) exited normally]
(gdb) 
